<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>机构信息管理</title>
		<link rel="stylesheet" href="../css/tables.css" type="text/css"></link>
		<jsp:include page="../common/xmeta.jsp"></jsp:include>
		<script type="text/javascript" src="js/adddpt.js" charset="UTF-8"></script>
	</head>

	<body>
	<br>
		<form id="addDept" action="department!addDepartMent.action" method="post">
			<table width="90%" class="tab_border" align="center">

				<caption>
					<h3>
						机构信息添加
					</h3>
				</caption>

				<tr>
					<td width="15%">
						机构名称<label style="color: red"> *</label>
					</td>
					<td>
						<input type="text" id="deptName" name="iDepartment.deptName">
					</td>
					<td width="15%">
						组别类型
					</td>
					<td>
						<select id="type" id="type" name="iDepartment.type">
							<option value="0">
								课题组
							</option>
							<option value="1">
								公司
							</option>
							<option value="2">
								单位
							</option>
						</select>
					</td>
				</tr>

				<tr>
					<td width="15%">
						级别
					</td>
					<td align="left">
						<input type="radio" name="grand" value="0" checked="checked" onclick="hiddenParentDeptNo()">
						大组
						<input type="radio" name="grand" value="1" onclick="showParentDeptNo()">
						子组
						<label id="parentDeptNo"></label>
						<input type="hidden" value="0" id="parentID" name="iDepartment.parentID">
					</td>
					<td width="15%">
						组别编号<label style="color: red"> *</label>
					</td>
					<td>
						<input type="text" id="deptNo" name="iDepartment.deptNo">
					</td>
				</tr>

				<tr>
					<td width="15%">
						付款账号
					</td>
					<td>
						<input type="text" id="payCode" name="iDepartment.payCode">
					</td>
					<td width="15%">
						折扣费率<label style="color: red"> *</label>
					</td>
					<td>
						<input type="text" id="rebate" name="iDepartment.rebate" value="100"> &nbsp;&nbsp; 如折扣率为85%，直接输入85即可
					</td>
				</tr>


				<tr>
					<td width="15%">
						电话号码
					</td>
					<td>
						<input type="text" id="phone" name="iDepartment.phone">
					</td>
					<td width="15%">
						传真号码
					</td>
					<td>
						<input type="text" id="fax" name="iDepartment.fax">
					</td>
				</tr>

				<tr>
					<td width="15%">
						联系地址
					</td>
					<td>
						<input type="text" id="address" name="iDepartment.address">
					</td>
					<td width="15%">
						邮政编码
					</td>
					<td>
						<input type="text" id="postCode" name="iDepartment.postCode">
					</td>
				</tr>

				<tr>
					<td width="15%">
						透支额度(元)
					</td>
					<td>
						<input type="text" id="facilityExtent" name="iDepartment.facilityExtent">
					</td>
					<td width="15%">
						备注
					</td>
					<td>
						<input type="text" id="remark" name="iDepartment.remark" style="width:85%">
					</td>
				</tr>

				<tr>
					<td colspan="4" align="center">
						<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">添 加</a>&nbsp;&nbsp;&nbsp;
						<a id="clear" href="#" class="easyui-linkbutton" iconCls="icon-cancel">清 空</a> 
					</td>
				</tr>
			</table>
		</form>


		<div id="win" class="easyui-window" title="选择所属大组" style="width: 680px; top: 70px" minimizable="false" maximizable="false"
			closable="true" closed="true">
			<table id="department" style="margin: 1; padding: 1">
			</table>
		</div>
	</body>
</html>